package tech.aistar.corejava.day06;

/**
 * Created by 李雨昂 on 2019/7/22.
 */
public class EmpTest {

    public static void main(String[] args) {

        Emp e1 = new Emp(1,"asd",20,null);
        Emp e2 = new Emp(2,"qwe",20,null);
        Emp e3 = new Emp(3,"zxc",20,null);
        Emp e4 = new Emp(4,"zxc",20,null);
        Emp boss = new Emp(5,"lya",22,new Emp[0]);

        boss.addEmp(e1);
        boss.addEmp(e2);
        boss.addEmp(e3);
        boss.addEmp(e4);

        System.out.println(boss);

        //boss.delById(1);
        //System.out.println(boss);

        boss.delByName("zxc");
        System.out.println(boss);


    }


}
